let sc = document.querySelector('.icon-icon-test')
let shoucangBtn = document.querySelector('.icon-xiajiantou')
let container2 = document.querySelector('.container2')

	let scFlag = false;
sc.onclick = function () {
	if(scFlag){
		sc.style.color = '#000'
		scFlag = false;
	}else{
		container2.style.display = 'block'
		sc.style.color = 'lightcoral'
		scFlag = true;
	}
    
}


shoucangBtn.onclick = function () {
    container2.style.display = 'none'
}


let shareicon = document.querySelector('.shareicon')
let share = document.querySelector('.share')
let as = document.querySelectorAll('li a')
let shareA = document.querySelector('.share-a')
shareicon.onclick = function () {
    share.style.display = 'block';
    for (let i = 0; i < as.length; i++) {
        as[i].onclick = function () {
            share.style.display = 'none';
        }
    }
    shareA.onclick = function(){
        share.style.display = 'none';
    }
}
